﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace game2048
{
    public partial class InputBox : Form
    {
        public int Result { get; set; }
        public InputBox()
        {
            InitializeComponent();
        }

        private void InputBox_Load(object sender, EventArgs e)
        {
            //置顶
            this.TopMost = true;

        }

        private void button1_Click(object sender, EventArgs e)
        {
            //按钮按下
            Result = int.Parse(comboBox1.Text);
            this.DialogResult = DialogResult.OK;
        }
    }
}
